﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgentQltyHistroyList.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.SvrMgr.AgentQltyHistroyList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>历史品情汇总</title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" BodyPadding="2px"  
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start"
            ShowHeader="false">
            <Items>                
                <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" Width="1200" ShowHeader="false"
                    EnableCheckBoxSelect="false"  EnableColumnLines="true" 
                    DataKeyNames="QltyId" AllowSorting="true" OnSort="Grid1_Sort"  SortField="QltyId"
                    SortDirection="DESC" AllowPaging="true" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange" OnRowDataBound="Grid1_RowDataBound" OnRowCommand="Grid1_RowCommand" OnPreRowDataBound="Grid1_PreRowDataBound" >
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                            runat="server">
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="20" Value="20" />
                            <f:ListItem Text="50" Value="50" />
                            <f:ListItem Text="100" Value="100" />   
                        </f:DropDownList>
                    </PageItems>
                    <Columns>
                        <f:RowNumberField Width="30px" EnablePagingNumber="true" TextAlign="Center" /> 
                        <f:BoundField DataField="AgentName" SortField="AgentName" Width="100px" HeaderText="经销商" />
                        <f:LinkButtonField ColumnID="ChangeClaimsNumberColumn" DataTextField="ClaimsNumber" SortField="ClaimsNumber" Width="100px" HeaderText="品情号" CommandName="ChangeClaimsNumber" CommandArgument="" ConfirmIcon="Question" />                                                   
                        <f:BoundField DataField="IssueDate" SortField="IssueDate" Width="100px" HeaderText="发行日期" DataFormatString="{0:yyyy-MM-dd}" />
                        <f:BoundField DataField="FaultDate" SortField="FaultDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="故障日" NullDisplayText="" Width="100px" />  
                        <f:BoundField DataField="WorkHour"  SortField="WorkHour" HeaderText="工作小时" NullDisplayText="0" Width="80px" />      
                        <f:BoundField DataField="ReportUser"  SortField="ReportUser" HeaderText="报告人" NullDisplayText=""  />
                         <f:BoundField DataField="ClaimState"  SortField="ClaimState" HeaderText="品情状态" NullDisplayText=""  />
                        <f:TemplateField HeaderText="故障描述"   Width="1000" >
                            <ItemTemplate>
                                 <asp:Label ID="hlFaultDescription" runat="server"></asp:Label>
                            </ItemTemplate>
                        </f:TemplateField>
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
       
    </form>   
</body>
</html>
